-- GENERATED SPELL FOR [Alliance Cleric] --


function spell0_26805(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(17843,pUnit)
pUnit:RegisterEvent('Sorts_26805', 1500, 1)
end

function spell1_26805(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(56919,pUnit)
pUnit:RegisterEvent('Sorts_26805', 1500, 1)
end

function spell2_26805(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(17139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26805', 30261, 1)
end

function spell3_26805(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(35944,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26805', 30276, 1)
end

function spell4_26805(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(47697,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26805', 551, 1)
end

function spell5_26805(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(56920,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26805', 577, 1)
end

function Sorts_26805(pUnit, Event)
local choix_sorts_26805 = math.random(0, 5)
if choix_sorts_26805 == 0 then
pUnit:RegisterEvent('spell0_26805', 1, 1)
end
if choix_sorts_26805 == 1 then
pUnit:RegisterEvent('spell1_26805', 1, 1)
end
if choix_sorts_26805 == 2 then
pUnit:RegisterEvent('spell2_26805', 1, 1)
end
if choix_sorts_26805 == 3 then
pUnit:RegisterEvent('spell3_26805', 1, 1)
end
if choix_sorts_26805 == 4 then
pUnit:RegisterEvent('spell4_26805', 1, 1)
end
if choix_sorts_26805 == 5 then
pUnit:RegisterEvent('spell5_26805', 1, 1)
end
end

function mob26805_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26805', math.random(1500, 3000), 1)
end

function mob26805_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26805_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26805_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26805, 1, 'mob26805_Action')
RegisterUnitEvent(26805, 2, 'mob26805_Leave')
RegisterUnitEvent(26805, 3, 'mob26805_Kill')
RegisterUnitEvent(26805, 4, 'mob26805_Die')
